<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>${_modId}</groupId>
    <artifactId>${_modId}</artifactId>
    <version>${_version}</version>

    <properties>
        <java.version>1.8</java.version>
        <steam.path>${_steamPath}<steam.path>
        <SlayTheSpire.version>01-23-2019</SlayTheSpire.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>com.megacrit.cardcrawl</groupId>
            <artifactId>SlayTheSpire</artifactId>
            <version>${r'${SlayTheSpire.version}'}</version>
            <scope>system</scope>
            <systemPath>${r'${steam.path}'}/common/SlayTheSpire/desktop-1.0.jar</systemPath>
        </dependency>
        <dependency>
            <groupId>com.evacipated.cardcrawl</groupId>
            <artifactId>ModTheSpire</artifactId>
            <version>3.24.0</version>
            <scope>system</scope>
            <systemPath>${r'${steam.path}'}/workshop/content/646570/1605060445/ModTheSpire.jar</systemPath>
        </dependency>
        <#list _pomDependencies as dep>
        <dependency>
            <groupId>${dep._modId}</groupId>
            <artifactId>${dep._modId}</artifactId>
            <version>${dep._version}</version>
            <scope>system</scope>
            <systemPath>${r'${steam.path}'}/${dep._modJarPath}</systemPath>
        </dependency>
        </#list>
    </dependencies>

    <build>
        <finalName>${r'${project.artifactId}'}</finalName>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>2.4</version>
                <configuration>
                    <excludes>
                        <exclude>**/*.psd</exclude>
                    </excludes>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <version>1.8</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <configuration>
                            <target>
                                <copy file="target/${r'${project.artifactId}'}.jar" tofile="${r'${steam.path}'}/common/SlayTheSpire/mods/${r'${project.artifactId}'}.jar"/>
                            </target>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
